using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Geomatrix
{
    class Player
    {
        int _score;
        public static Vector2 _position;
        bool _disable;

        public Player(Vector2 pos)
        {
            _disable = false;
            _score = 0;
            _position = pos;
        }

        public bool Move(Vector2 newPos)
        {
            if (_disable)
                return false;

            _position = newPos;

            return true;
        }

        public Vector2 GetPosition()
        {
            return _position;
        }

        public void AddPoints(int toAdd)
        {
            _score += toAdd;
        }

        public void SetScore(int newScore)
        {
            _score = newScore;
        }

        public int GetScore()
        {
            return _score;
        }

        public void disable()
        {
            _disable = true;
        }

        public void enable()
        {
            _disable = false;
        }

        public void SetDisabled(bool disable)
        {
            _disable = disable;
        }
    }
}